package burubaka.controller.mnt;

import java.util.List;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

import burubaka.model.RaceInfo;
import burubaka.service.RaceInfoService;

public class RaceModController extends Controller {

	private RaceInfoService raceInfoService = new RaceInfoService();

	@Override
    public Navigation run() throws Exception {

		List<RaceInfo> raceList = raceInfoService.findAll();

		requestScope("raceList", raceList);

        return forward("raceMod.jsp");
    }
}
